def moveZeroes(nums):
    index = 0
    for i in range(len(nums)):
        if nums[i] != 0:
            nums[index] = nums[i]
            index += 1
    for i in range(index, len(nums)):
        nums[i] = 0
    return nums


nums = [1, 2, 0, 3, 0, 100]
moveZeroes(nums)
print(nums)
